package com.guigu.community.controller;

import com.guigu.community.pojo.Repository;
import com.guigu.community.service.RepositoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/repository")
public class RepositoryController {
    @Autowired
    RepositoryService repositoryService;

    @PostMapping("/selectAll")
    @ResponseBody
    public List<Repository> selectAll(){
        return repositoryService.selectAll();
    }


}
